import os
import sys
from dbse.mysql.db_mysql_insert import getDataBase
from pathlib import Path
from dotenv import load_dotenv

print(Path('.env').exists())
load_dotenv('.env.dev')
host = os.getenv('DATABASE_HOST')
print(host)
print(os.getcwd())
print(os.path.abspath(__file__))                            # 文件的绝对路径
print(os.path.dirname(os.path.abspath(__file__)))           #文件的路径
print(os.environ.get('PYTHONPATH'))
print(os.environ.get('PYTHONPATH').split(";")[0])           # 环境变量
